#!/usr/bin/env python
# __author__ = "lynn.lin <lynnos@tong-ji.org>"
# __date__ = "2008-09-20"

import sys

def decimal2binary(x):
	y = []
	while x != 0 :
		y.insert(0,x % 2)
		x =  x / 2
	fillzero = 32 - len(y)
	for i in xrange(fillzero):
		y.insert(0,0)
	return y

if __name__ == '__main__':
	if len(sys.argv) > 2:
		print "usage: decimal2binary [decimal]"
		sys.exit(1)
	print decimal2binary(int(sys.argv[1]))
	
